package com.neusoft.hospital.service.impl;
/**
 *
 * @author:杨浩杰
 * 服务器实现类 CidService
 *
 */
import com.neusoft.hospital.mapper.CidMapper;
import com.neusoft.hospital.pojo.Cidetailedreport;
import com.neusoft.hospital.service.CidService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class CidServiceImpl implements CidService {

	@Resource
	private CidMapper cidMapper;

	@Override
	public int insertCid(Cidetailedreport cidetailedreport) {
		return cidMapper.insertCid(cidetailedreport);
	}

	@Override
	public int updateCid(Cidetailedreport cidetailedreport) {
		return cidMapper.updateCid(cidetailedreport);
	}

	@Override
	public Cidetailedreport findTaskByCidrId(int cidrId) {
		return cidMapper.findTaskByCidrId(cidrId);
	}


	@Override
	public int deleteCid(Cidetailedreport cidetailedreport) {
		return cidMapper.deleteCid(cidetailedreport);
	}

	@Override
	public List<Cidetailedreport> findCidBySql() {
		return cidMapper.findCidBySql();
	}

	@Override
	public List<Cidetailedreport> findCidByName(String name) {
		return cidMapper.findCidByName(name);
	}

	@Override
	public List<Cidetailedreport> findCidByOrderId(int orderId) {
		return cidMapper.findCidByOrderId(orderId);
	}
}
